package com.wmx.main;

import com.wmx.entity.CopyThread;
import com.wmx.entity.FileData;
import com.wmx.entity.ProgressThread;

import java.util.concurrent.atomic.AtomicLong;

/**
 * 作者:wmx  2025-03-07 09:31
 * 1、功能；
 * 2、实现:
 * 3、参数
 **/
public class entrance {

    public static void main(String[] args) throws InterruptedException {
        String source = "D:\\桌面文件夹\\新建 文本文档.txt" ;
        String target = "D:\\桌面文件夹\\新建 文本文档 (2).txt" ;

        FileData fileData = new FileData();

        CopyThread ct = new CopyThread(source,target,fileData) ;
        ProgressThread pt = new ProgressThread(fileData);
        pt.setDaemon(true);

        ct.start();
        pt.start();


    }
}
